# 2024/1/30 10:21 HFL
# 引入
import requests

# 准备数据
url = 'http://testingedu.com.cn:8000/index.php?m=Home&c=User&a=do_login&t=0.12707354384517044'

data = {
    'username': '13800138006',
    'password': "123456",
    'verify_code': 1111
}
# # 发送请求
# res = requests.post(url=url, json=data)
# print(res.text)
# # 转码为中文
# print(res.content.decode('unicode-escape'))
# res2 = requests.request(method='POST',url=url,data=data)
# print(res2.text)

url2 = 'https://jobs.51job.com/shanghai-cnq/108891531.html?s=sou_sou_soulb&t=0_0&req=135b57625f4be675d51a95b1920904ae&timestamp__1258=YqIxyiG%3DIxgmD%2FD0Dx27moi%3DDCKqD8egfeD&alichlgref=https%3A%2F%2Fwe.51job.com%2F '
result = requests.get(url=url2)
result.encoding = 'utf-8'
print(result.text)

# url3 = 'https://kyfw.12306.cn/otn/leftTicket/init?linktypeid=dc&fs=%E5%B9%BF%E5%B7%9E,GZQ&ts=%E5%8D%97%E5%AE%81,NNZ&date=2024-02-05&flag=N,N,Y'
# headers = {
#     'cookie': '_uab_collina=170623024401701368681717; JSESSIONID=B3697B35869058995807584790760F9F; guidesStatus=off; highContrastMode=defaltMode; cursorStatus=off; _jc_save_wfdc_flag=dc; BIGipServerpassport=1005060362.50215.0000; route=c5c62a339e7744272a54643b3be5bf64; BIGipServerotn=4057399562.50210.0000; _jc_save_toDate=2024-01-30; _jc_save_fromStation=%u5E7F%u5DDE%2CGZQ; _jc_save_toStation=%u5357%u5B81%2CNNZ; _jc_save_fromDate=2024-02-05'}
# res2 = requests.get(url=url3, headers=headers)
# res2.encoding = 'utf-8'
# print(res2.text)
